import variables from '@/styles/global.module.scss'

// 读取css变量及样式class前缀

// 使用组合式函数，将部分复用逻辑拆分出来
export const useDesign = () => {
  const scssVariables = variables

  const getPrefixCls = (scope: string) => {
    return `${scssVariables.namespace}-${scope}`
  }

  return {
    variables: scssVariables,
    getPrefixCls
  }
}
